import request from "@/utils/request";

// 获取对话列表
export function getVerifyCode(data) {
	return request({
		url: '/bolePin/auth/getVerifyCode',
		method: 'post',
		headers: {
      'Content-Type': 'application/json',   
   	},
		data,
	})
}

// 登录
export function authLogin(data) {
	return request({
		url: '/bolePin/auth/login',
		method: 'post',
		headers: {
      'Content-Type': 'application/json',   
   	},
		data,
	})
}

// 获取用户信息
export function getUserInfo(params) {
	return request({
		url: '/bolePin/user/getUserInfo',
		method: 'get',
		headers: {
      'Content-Type': 'application/json',   
   	},
		params,
	})
}


// 获取用户信息
export function updateUserInfo(data) {
	return request({
		url: '/bolePin/user/updateUserInfo',
		method: 'post',
		headers: {
      'Content-Type': 'application/json',   
   	},
		 data,
	})
}

// 我的数字分身
export function agentGetList(data) {
	return request({
		url: '/bolePin/agent/getPublicPageList',
		method: 'post',
		headers: {
      'Content-Type': 'application/json',   
   	},
		 data,
	})
}

// 我的数字分身
export function agentGetMyList(data) {
	return request({
		url: '/bolePin/agent/getPageList',
		method: 'post',
		headers: {
      'Content-Type': 'application/json',   
   	},
		 data,
	})
}


// 重新生成报告
export function generateReport(data) {
	return request({
		url: '/bole/candidate/generateReport',
		method: 'post',
		headers: {
      'Content-Type': 'application/json',   
   	},
		data,
	})
}


// 创建数字分身
export function agentCreate(data) {
	return request({
		url: '/bolePin/agent/create',
		method: 'post',
		headers: {
      'Content-Type': 'application/json',   
   	},
		data,
	})
}


// 退出
export function logout(data) {
	return request({
		url: '/bolePin/auth/logout',
		method: 'get',
		headers: {
      'Content-Type': 'application/json',   
   	},
		 data,
	})
}

// 编辑数字分身
export function agentUpdate(data) {
	return request({
		url: '/bolePin/agent/update',
		method: 'post',
		headers: {
      'Content-Type': 'application/json',   
   	},
		 data,
	})
}


// 公开发布
export function agentRelease(data) {
	return request({
		url: '/bolePin/agent/release',
		method: 'post',
		headers: {
      'Content-Type': 'application/json',   
   	},
		 data,
	})
}


// 创建聊天室
export function generateChatLink(params) {
	return request({
		url: '/rtc/room/generateChatLink',
		method: 'get',
		headers: {
      'Content-Type': 'application/json',   
   	},
		params,
	})
}



// 职位编辑
export function recommendEditJob(data) {
	return request({
		url: '/hr/recommend/editJob',
		method: 'post',
		headers: {
      'Content-Type': 'application/json'
    },
		data:{
			...data,
		},
	})
}


// 未读数量
export function countUnread(data) {
	return request({
		url: '/bole/notification/countUnread',
		method: 'get',
		headers: {
      'Content-Type': 'application/json'
    }
	})
}

// 分页列表
export function getPageList(data) {
	return request({
		url: '/bole/notification/getPageList',
		method: 'post',
		headers: {
      'Content-Type': 'application/json'
    },
		data:{
			...data,
		},
	})
}

// AI面试官
export function jobGetPageList(data) {
	return request({
		url: '/bole/job/getPageList',
		method: 'post',
		headers: {
      'Content-Type': 'application/json'
    },
		data:{
			...data,
		},
	})
}

// 创建岗位
export function jobCreate(data) {
	return request({
		url: '/bole/job/create',
		method: 'post',
		headers: {
      'Content-Type': 'application/json'
    },
		data:{
			...data,
		},
	})
}

// 编辑岗位
export function jobEdit(data) {
	return request({
		url: '/bole/job/edit',
		method: 'post',
		headers: {
      'Content-Type': 'application/json'
    },
		data:{
			...data,
		},
	})
}

// 岗位详情
export function getDetailInfo(data) {
	return request({
		url: '/bole/job/getDetailInfo',
		method: 'post',
		headers: {
      'Content-Type': 'application/json'
    },
		data:{
			...data,
		},
	})
}

// 候选人明细 分页列表
export function candidateGetPageList(data) {
	return request({
		url: '/bole/candidate/getPageList',
		method: 'post',
		headers: {
      'Content-Type': 'application/json'
    },
		data:{
			...data,
		},
	})
}


// 候选人明细 导入候选人
export function candidateUpload(data) {
	return request({
		url: '/bole/candidate/upload',
		method: 'post',
		headers: {
      'Content-Type': 'application/json'
    },
		data:{
			...data,
		},
	})
}

// 候选人明细 批量邀约
export function candidateInvite(data) {
	return request({
		url: '/bole/candidate/invite',
		method: 'post',
		headers: {
      'Content-Type': 'application/json'
    },
		data:{
			...data,
		},
	})
}

// 候选人明细 删除
export function candidateDelete(data) {
	return request({
		url: '/bole/candidate/delete',
		method: 'post',
		headers: {
      'Content-Type': 'application/json'
    },
		data:{
			...data,
		},
	})
}

// 柱状图
export function getBarChart(data) {
	return request({
		url: '/bole/candidate/getBarChart',
		method: 'post',
		headers: {
      'Content-Type': 'application/json'
    },
		data:{
			...data,
		},
	})
}


// 饼图1
export function getPieChart1(data) {
	return request({
		url: '/bole/candidate/getPieChart1',
		method: 'post',
		headers: {
      'Content-Type': 'application/json'
    },
		data:{
			...data,
		},
	})
}


// 饼图1
export function getReport(data) {
	return request({
		url: '/bole/candidate/getReport',
		method: 'post',
		headers: {
      'Content-Type': 'application/json'
    },
		data:{
			...data,
		},
	})
}



// 创建会话 -新
export function generateSession(data) {
	return request({
		url: '/rtc/room/generateSession',
		method: 'post',
		headers: {
      'Content-Type': 'application/json'
    },
		data:{
			...data,
		},
	})
}


// 弹框邀请函
export function invitationGetDetailInfo(data) {
	return request({
		url: '/bole/invitation/getDetailInfo',
		method: 'post',
		headers: {
      'Content-Type': 'application/json'
    },
		data:{
			...data,
		},
	})
}


// 邀请函列表
export function invitationGetPageList(data) {
	return request({
		url: '/bole/invitation/getPageList',
		method: 'post',
		headers: {
      'Content-Type': 'application/json'
    },
		data:{
			...data,
		},
	})
}

// 绑定邀请含
export function invitationBindUser(data) {
	return request({
		url: '/bole/invitation/bindUser',
		method: 'get',
		headers: {
      'Content-Type': 'application/json'
    },
		params: {
			...data
		},
	})
}


// 接受或拒绝
export function invitationOperate(data) {
	return request({
		url: '/bole/invitation/operate',
		method: 'post',
		headers: {
      'Content-Type': 'application/json'
    },
		data:{
			...data,
		},
	})
}



export const attachmentGetList = () => {
	return request({
		url: '/bole/attachment/getList',
		method: 'get',
		headers: {
      'Content-Type': 'application/json'
    },
	}) 
}

//设置默认附件
export const attachmentSetDefault = (data) => {
	return request({
		url: '/bole/attachment/setDefault',
		method: 'get',
		headers: {
      'Content-Type': 'application/json'
    },
		params: {
			...data
		},
	}) 
}



// 删除附件
export const attachmentDelete = (data) => {
	return request({
		url: '/bole/attachment/delete',
		method: 'get',
		headers: {
      'Content-Type': 'application/json'
    },
		params: {
			...data
		},
	}) 
}

// 选择附件
export const selectAttachment = (data) => {
	return request({
		url: '/bole/invitation/selectAttachment',
		method: 'post',
		headers: {
      'Content-Type': 'application/json'
    },
		data
	}) 
}


// 获取智能明细
export const agentGetDetailInfo = (data) => {
	return request({
		url: '/bolePin/agent/getDetailInfo',
		method: 'post',
		headers: {
      'Content-Type': 'application/json'
    },
		data
	}) 
}

// 心跳监控
export const notificationHearBeat = (data) => {
	return request({
		url: '/bole/notification/heartbeat',
		method: 'get',
		headers: {
      'Content-Type': 'application/json'
    },
		data
	}) 
}

// 添加候选人
export const candidateAdd = (data) => {
	return request({
		url: '/bole/candidate/add',
		method: 'post',
		headers: {
      'Content-Type': 'application/json'
    },
		data
	}) 
}

// 编辑候选人
export const candidateEdit = (data) => {
	return request({
		url: '/bole/candidate/edit',
		method: 'post',
		headers: {
      'Content-Type': 'application/json'
    },
		data
	}) 
}



// 更改帐号状态
export function employeeState(data) {
	return request({
		url: '/bole/employee/state',
		method: 'post',
		headers: {
			'Content-Type': 'application/json'
		},
		data:{
			...data,
		},
	}) 
}


// 职位管理
export function employeeGetPageList(data) {
	return request({
		url: '/bole/employee/getPageList',
		method: 'post',
		headers: {
			'Content-Type': 'application/json'
		},
		data: data,
	}) 
}


// 移除
export function employeeRemove(data) {
	return request({
		url: '/bole/employee/remove',
		method: 'post',
		headers: {
			'Content-Type': 'application/json'
		},
		data:{
			...data,
		},
	}) 
}

//冻结
export function employeeBlock(data) {
	return request({
		url: '/bole/employee/block',
		method: 'post',
		headers: {
			'Content-Type': 'application/json'
		},
		data:{
			...data,
		},
	}) 
}

// 充值
export function employeeRecharge(data) {
	return request({
		url: '/bole/employee/recharge',
		method: 'post',
		headers: {
			'Content-Type': 'application/json'
		},
		data:{
			...data,
		},
	}) 
}



// 克隆分身
export function agentClone(data) {
	return request({
		url: '/bolePin/agent/clone',
		method: 'get',
		headers: {
			'Content-Type': 'application/json'
		}
	}) 
}

// 声音列表
export function dictionaryDictionary(data) {
	return request({
		url: '/bole/dictionary/getVoiceList',
		method: 'get',
		headers: {
			'Content-Type': 'application/json'
		}
	}) 
}

// 声音列表
export function getRandomAvatar(data) {
	return request({
		url: '/bole/dictionary/getRandomAvatar',
		method: 'get',
		headers: {
			'Content-Type': 'application/json'
		}
	}) 
}



// 保存提问列表
export function saveQuestions(data) {
	return request({
		url: '/bole/job/saveQuestions',
		method: 'post',
		headers: {
			'Content-Type': 'application/json'
		},
		data
	}) 
}



// 获取提问列表
export function getQuestions(data) {
	return request({
		url: '/bole/job/getQuestions',
		method: 'post',
		headers: {
			'Content-Type': 'application/json'
		},
		data
	}) 
}

// 创建邀请函
export function createInvitation(data) {
	return request({
		url: '/bole/candidate/createInvitation',
		method: 'post',
		headers: {
			'Content-Type': 'application/json'
		},
		data
	}) 
}



// 创建邀请函
export function getBasicInfo(data) {
	return request({
		url: '/bole/invitation/getBasicInfo',
		method: 'get',
		params: data
	}) 
}


// 拒绝|接受
export function scheduleInterview(data) {
	return request({
		url: '/bole/invitation/scheduleInterview',
		method: 'post',
		data
	}) 
}


